A heap dump is a dump of the state of the Java heap memory. This is useful for analyzing the use of memory i.e. an application is making at some point in time so handy in diagnosing some memory issues, and if done at intervals, handy in diagnosing memory leaks. In the dashboard, an option is provided for taking heap dump.
Take Heap Dump
You need to follow the below mentioned steps to take a Heap dump:
- Go to Actions > Heap Dump The heap dump window is displayed, select the tier and server.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-27-Heap-Dump-Window.png)
2. To get all instances of the selected tier and server, click the All For ND instances, click the ND
button. A list of instances is displayed with the related information, such as: process ID, instance name, and process arguments.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-28-Heap-Dump-Instance.png)
3. You can take a heap dump after selecting the PID of a particular selected Tier concerning the Server.
4. Click Take Heap Dump button for taking the heap dump.
5. Mention the heap dump file name with the full path of storage.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-29-Heap-Dump-Setting-Window.png)
6. Click Apply After the successful heap dump at the specified path, a confirmation message is displayed as shown in the below figure.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-30-Confirmation-Message.png)
7. For ND instances, you can apply some settings on the heap dump window. These settings include download configuration – whether to keep a copy on the server, whether to download the heap dump file in compressed format along with some other advanced settings.
8. Click the Take Heap Dump System takes the heap dump and displays a confirmation message as shown in Figure 30.
9. To download the heap dump files, click the Heap Dump List This displays a list of heap dump files.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-31-Heap-Dump-List-Button.png)
10. Click the Download icon corresponding to the file to download it.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-32-Heap-Dump-Manager.png)
Analyze Heap Dump
Once the heap dump is taken, you can analyze the heap dump. There are the following options from where you can analyze it:
- From Actions > Heap dump > Heap dump list > Heap analyzer icon.
- From Tier > Server > Instance graph > Widget menu > Diagnostics > Heap dump > Heap dump list > Heap analyzer icon.
- From Actions > Heap dump > Heap dump list > Analyze from local.
- From Actions > Heap dump > Heap dump list > Analyze from NDE Box.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-33.png)
After clicking the Analyzer Heap icon, it parses the heap dump file and displays the Java Heap dump analyzer window.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-34-Heap-Dump-Analyzer.png)
This window further contains the following tabs:
- System Overview
- Leak Suspects
- Top components
System Overview
This tab contains the following details:
Heap Dump Overview
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-35-Heap-Dump-Overview.png)
System Properties
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-36-System-Properties.png)
Thread Overview
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-37-Thread-Overview.png)
Top Consumers
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-38-Top-Consumers.png)
Class Histogram
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-39-Class-Histogram.png)
Leak Suspects
This tab displays the overview of leaks, Problem suspects, and other details.
Leaks
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-40-Leaks.png)
Problem Suspects
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-41-Problem-Suspects.png)
Top Components
This tab contains information about the top consumers, Retained set, possible memory waste, soft memory stats, and weak memory stats.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-42-Top-Consumers-1024x331.png)
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-43-Analyze-Heap-from-Local.png)
2. Select the heap dump file from the local.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-44-Heap-Dump-File.png)
3. The uploaded heap dump file is parsed and displayed on the window.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-45-Uploaded-Heap-Dump.png)
4. Once it is parsed, the Heap Dump Analyzer window is displayed.
![](https://docs.cavisson.com/wp-content/uploads/2023/02/Figure-46-Heap-Dump-Analyzer-Window.png)
Note: If you click the ‘Close’ icon, it does not cancel the file uploading process, it just hides the file uploading status.